package com.gosling.cloudspace.common.constants.order;


import io.swagger.annotations.ApiModelProperty;

import java.util.Arrays;
import java.util.List;

/**
 * 订单状态
 *
 * @author lihonglin
 * @date 2023/10/16 10:41
 */
public class OrderStatusConstants {
    //订单状态
    @ApiModelProperty("order_lending-放款中")
    public static final String LENDING = "order_lending";
    @ApiModelProperty("order_loan_error-放款失败")
    public static final String LOAN_ERROR = "order_loan_error";
    @ApiModelProperty("order_audit_ing-审核中")
    public static final String AUDIT_ING = "order_audit_ing";
    @ApiModelProperty("order_audit_error-审核失败")
    public static final String AUDIT_ERROR = "order_audit_error";
    @ApiModelProperty("order_success-放款成功")
    public static final String SUCCESS = "order_success";

    @ApiModelProperty("order_sign-待签章")
    public static final String SIGN = "order_sign";
    @ApiModelProperty("order_submit_audit-待提交审核")
    public static final String SUBMIT_AUDIT = "order_submit_audit";
    @ApiModelProperty("order_cancelled-已取消")
    public static final String CANCELLED = "order_cancelled";
    @ApiModelProperty("order_living_body-待活体")
    public static final String LIVING_BODY = "order_living_body";

    @ApiModelProperty("不允许重新发起")
    public static final String[] NOT_SEND_LOAN = {AUDIT_ING, LENDING};
    public static final List<String> NOT_SEND_LOAN_LIST = Arrays.asList(NOT_SEND_LOAN);

    @ApiModelProperty("拦截 CHECK")
    public static final String[] CHECK = {AUDIT_ING, LENDING, LOAN_ERROR, SIGN, SUBMIT_AUDIT, LIVING_BODY};
    public static final String[] CHECK_RESET = {AUDIT_ING, LENDING, SIGN, SUBMIT_AUDIT, LIVING_BODY};
    public static final List<String> CHECK_LIST = Arrays.asList(CHECK);
    public static final List<String> CHECK_RESET_LIST = Arrays.asList(CHECK_RESET);
}
